#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#

import sys
import os

# print((sys.argv).split('/')[-1])
if len(sys.argv) != 3:
    print("使用  {} 源文件 目标文件".format(os.path.basename(__file__)))

with open("{}".format(sys.argv[1]), "rb") as read_f, \
        open("{}".format(sys.argv[2]), "wb") as write_f:
    for read in read_f:
        read_f.seek(0, 0)  # 先让它从开头开始
        msg = read_f.read()
        write_f.write(msg)
    write_f.flush()
